/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testecontrole;

import br.ufrn.dca.controle.QuanserClient;
import br.ufrn.dca.controle.QuanserClientException;

/**
 *
 * @author Rafael Holanda
 */
public class TesteControle {

    /**
     * Main
     * 
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        QuanserClient quanserClient;
        try {
            quanserClient = new QuanserClient("localhost", 20081);
            double _read = quanserClient.read(0);
            System.out.println("Leitura Canal 0: " + _read);
            //System.out.println("Gravando 1.2 volts no canal 4...");
            quanserClient.write(0,1.2);
        } catch (QuanserClientException ex) {
            ex.printStackTrace();
        }
    }
}
